package cn.stylefeng.guns.modular.order.model.result;

import cn.hutool.core.util.IdUtil;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author zhou
 * @since 2019-08-02
 */
@Data
public class TbOrderResult implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 订单id
     */
    private String orderId;


    /**
     * 税金
     */
    private String tax;

    /**
     * 商品id
     */
    private String goodsId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 实付金额（产品价格+税率+运费）
     */
    private BigDecimal payment;
    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 支付类型 1在线支付 2货到付款
     */
    private Integer paymentType;
    /**
     * 支付类型描述
     */
    private String paymentTypeDesc;

    /**
     * 邮费
     */
    private BigDecimal postFee;

    /**
     * 状态 0未付款 1已付款 2未发货 3已发货 4交易成功 5交易关闭 6交易失败
     */
    private Integer status;
    /**
     * 状态描述
     */
    private String statusDesc;

    /**
     * 订单创建时间
     */
    private Date createTime;

    /**
     * 订单更新时间
     */
    private Date updateTime;

    /**
     * 付款时间
     */
    private Date paymentTime;

    /**
     * 发货时间
     */
    private Date consignTime;

    /**
     * 交易完成时间
     */
    private Date endTime;

    /**
     * 交易关闭时间
     */
    private Date closeTime;

    /**
     * 物流名称
     */
    private String shippingName;

    /**
     * 物流单号
     */
    private String shippingCode;

    /**
     * 区域
     */
    private String area;
    /**
     * 目的地
     */
    private String destination;
    /**
     * 详细地址
     */
    private String address;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 商户id
     */
    private String merId;

    /**
     * 买家留言
     */
    private String buyerMessage;

    /**
     * 买家昵称
     */
    private String buyerNick;

    /**
     * 买家是否已经评价
     */
    private Boolean buyerComment;


    /**
     * 客户备注
     */

    private String  remarksUser;

    /**
     * 销售备注
     */

    private String  remarksSales;

    private String nickName;

    private Integer isTranslate;

    private Integer isTree;


    @Override
    public String toString() {
        return "TbOrderResult{" +
                "orderId='" + orderId + '\'' +
                ", tax='" + tax + '\'' +
                ", goodsId=" + goodsId +
                ", goodsName='" + goodsName + '\'' +
                ", payment=" + payment +
                ", quantity=" + quantity +
                ", paymentType=" + paymentType +
                ", paymentTypeDesc='" + paymentTypeDesc + '\'' +
                ", postFee=" + postFee +
                ", status=" + status +
                ", statusDesc='" + statusDesc + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", paymentTime=" + paymentTime +
                ", consignTime=" + consignTime +
                ", endTime=" + endTime +
                ", closeTime=" + closeTime +
                ", shippingName='" + shippingName + '\'' +
                ", shippingCode='" + shippingCode + '\'' +
                ", area='" + area + '\'' +
                ", destination='" + destination + '\'' +
                ", address='" + address + '\'' +
                ", userId=" + userId +
                ", merId='" + merId + '\'' +
                ", buyerMessage='" + buyerMessage + '\'' +
                ", buyerNick='" + buyerNick + '\'' +
                ", buyerComment=" + buyerComment +
                ", remarksUser='" + remarksUser + '\'' +
                ", remarksSales='" + remarksSales + '\'' +
                ", money='" + money + '\'' +
                '}';
    }

    /**
     * 单价
     * @return
     */

    private String  money;

    public static void main(String[] args) {
        System.out.println(IdUtil.fastSimpleUUID());
        System.out.println(IdUtil.fastUUID());
        System.out.println(IdUtil.objectId());
        System.out.println(IdUtil.randomUUID());
        System.out.println(IdUtil.simpleUUID());
    }



}
